package com.zh.freechat.domain.auth;

import lombok.Getter;

/**
 * 登录后返回给前端的token数据包装对象
 *
 * @author ZH
 * @date 16:36 2022/1/26
 */
@Getter
public class UserTokenWrap {
    private String access_token;
    private String refresh_token;
    private String openid;
    private LoginUser userInfo;

    protected UserTokenWrap() {
    }

    public UserTokenWrap(String access_token, String refresh_token, LoginUser userInfo) {
        this.access_token = access_token;
        this.refresh_token = refresh_token;
        this.userInfo = userInfo;
    }

}
